package com.omuao.core.lang.base;

/**
 * 基础DTO
 *
 * @author yumi@omuao.com
 * @since 2019-10-15
 **/
public class BaseDto {
    /**
     * 排序方式：升序
     */
    public static final boolean SORT_ASC = true;

    /**
     * 排序方式：降序
     */
    public static final boolean SORT_DESC = false;

    /**
     * 默认排序方式：降序
     */
    public static final boolean DEFAULT_SORT = SORT_DESC;

    /**
     * 排序：排序字段
     */
    public static final String SORT_COLUMN = "sort";
    /**
     * 排序：创建时间
     */
    public static final String CREATE_TIME_COLUMN = "create_time";

    /**
     * 排序：更新时间
     */
    public static final String UPDATE_TIME_COLUMN = "update_time";

    /**
     * 排序：禁用时间
     */
    public static final String DISABLE_TIME_COLUMN = "disable_time";

    /**
     * 排序：删除时间
     */
    public static final String DELETE_TIME_COLUMN = "delete_time";

    /**
     * 默认排序：创建时间
     */
    public static final String DEFAULT_SORT_COLUMN = CREATE_TIME_COLUMN;

    /**
     * 搜索字段
     */
    protected String search;

    /**
     * 排序列
     */
    protected String sortColumn;

    /**
     * 排序列的值
     */
    protected String sortColumnValue;

    /**
     * 升序或降序
     */
    protected boolean asc;

    /**
     * 创建时间（起始）
     */
    protected String createTimeStart;

    /**
     * 创建时间（结束）
     */
    protected String createTimeEnd;

    /**
     * 更新时间（起始）
     */
    protected String updateTimeStart;

    /**
     * 更新时间（结束）
     */
    protected String updateTimeEnd;

    /**
     * 删除时间（起始）
     */
    protected String deleteTimeStart;

    /**
     * 删除时间（结束）
     */
    protected String deleteTimeEnd;

    /**
     * 禁用时间（起始）
     */
    protected String disableTimeStart;

    /**
     * 禁用时间（结束）
     */
    protected String disableTimeEnd;

    /**
     * 来自 REST 接口
     */
    protected String fromRestInterface;

    /**
     * 来自 REST 客户端
     */
    protected String fromRestClient;

    public String getSearch() {
        return search;
    }

    public void setSearch(String search) {
        this.search = search;
    }

    public String getSortColumn() {
        return sortColumn;
    }

    public void setSortColumn(String sortColumn) {
        this.sortColumn = sortColumn;
    }

    public String getSortColumnValue() {
        return sortColumnValue;
    }

    public void setSortColumnValue(String sortColumnValue) {
        this.sortColumnValue = sortColumnValue;
    }

    public boolean isAsc() {
        return asc;
    }

    public void setAsc(boolean asc) {
        this.asc = asc;
    }

    public String getCreateTimeStart() {
        return createTimeStart;
    }

    public void setCreateTimeStart(String createTimeStart) {
        this.createTimeStart = createTimeStart;
    }

    public String getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(String createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }

    public String getUpdateTimeStart() {
        return updateTimeStart;
    }

    public void setUpdateTimeStart(String updateTimeStart) {
        this.updateTimeStart = updateTimeStart;
    }

    public String getUpdateTimeEnd() {
        return updateTimeEnd;
    }

    public void setUpdateTimeEnd(String updateTimeEnd) {
        this.updateTimeEnd = updateTimeEnd;
    }

    public String getDeleteTimeStart() {
        return deleteTimeStart;
    }

    public void setDeleteTimeStart(String deleteTimeStart) {
        this.deleteTimeStart = deleteTimeStart;
    }

    public String getDeleteTimeEnd() {
        return deleteTimeEnd;
    }

    public void setDeleteTimeEnd(String deleteTimeEnd) {
        this.deleteTimeEnd = deleteTimeEnd;
    }

    public String getDisableTimeStart() {
        return disableTimeStart;
    }

    public void setDisableTimeStart(String disableTimeStart) {
        this.disableTimeStart = disableTimeStart;
    }

    public String getDisableTimeEnd() {
        return disableTimeEnd;
    }

    public void setDisableTimeEnd(String disableTimeEnd) {
        this.disableTimeEnd = disableTimeEnd;
    }

    public String getFromRestInterface() {
        return fromRestInterface;
    }

    public void setFromRestInterface(String fromRestInterface) {
        this.fromRestInterface = fromRestInterface;
    }

    public String getFromRestClient() {
        return fromRestClient;
    }

    public void setFromRestClient(String fromRestClient) {
        this.fromRestClient = fromRestClient;
    }
}
